package com.hfut.jpoa.dao;

import com.hfut.jpoa.common.dto.ResultDto;
import com.hfut.jpoa.common.exception.DaoException;
import com.hfut.jpoa.dto.NoticeDTO;
import com.hfut.jpoa.model.Notice;

public interface NoticeDAO
{
	int deleteByPrimaryKey(String noticeId) throws DaoException;

	void insert(Notice record) throws DaoException;

	void insertSelective(Notice record) throws DaoException;

	Notice selectByPrimaryKey(String noticeId) throws DaoException;

	int updateByPrimaryKeySelective(Notice record) throws DaoException;

	int updateByPrimaryKey(Notice record) throws DaoException;

	/**
	 * 查询分页列表
	 * 
	 * @param condition
	 * @return
	 * @throws DaoException
	 */
	public ResultDto<Notice> findInfoForPage(NoticeDTO condition)
	        throws DaoException;

	/**
	 * 查看详情
	 * 
	 * @param condition
	 * @return
	 */
	public Notice findInfo(Notice condition) throws DaoException;
}